<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"  />
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$webSite}public/css/base.css"/>
	</head>

	<style>
		
		/*******	主体导航栏  a_head_main 	**********/
		.a_head_main{
			/* width:1000px; */
			width:82%;
			min-height:650px;
			float:left;
			margin-left:180px;
			margin-top:120px;
		}
		.main_site1_head{
			/* width:1000px; */
			width:100%;
			height:50px;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			font-size:16px;
			font-weight:bold;
			color:#09C;
		}
		
		.main_site1_head2{
			/* width:1000px; */
			width:100%;
			height:35px;
			background:#F3F8FD;
			border-bottom:1px #DEEFFB solid;
			line-height:35px;
			font-size:14px;
			font-weight:bold;
			color:#09C;
		}

		.main_site2_form_head{
			/* width:1000px; */
			width:100%;
			height:40px;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_head .div1{
			width:90px;
			height:40px;
			float:left;
			margin-left:70px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div1 span{
			font-size:12px;
			font-weight:100;
			color:#F60;
		}
		.main_site2_form_head .div2{
			width:80px;
			height:40px;
			float:left;
			margin-left:210px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div3{
			width:80px;
			height:40px;
			float:left;
			margin-left:80px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div4{
			width:50px;
			height:40px;
			float:left;
			margin-left:70px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div5{
			width:50px;
			height:40px;
			float:left;
			margin-left:10px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div6{
			width:90px;
			height:40px;
			float:left;
			margin-left:30px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_body{
			/* width:1000px; */
			width:100%;
			height:40px;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_body  a{
			color:blue;
		}
		.main_site2_form_body  a:hover{
			color:orange;
		}
		.main_site2_form_body:hover{
		
			background:#F2F9FD;

			
		}
		.main_site2_form_body  .put1{
			float:left;	
			margin-left:15px;

		}
		.main_site2_form_body  .put2{
			float:left;
			width:250px;
			height:40px;
			margin-left:40px;
			white-space:nowrap;
			text-overflow:ellipsis;
			overflow:hidden;
			color:blue;
		}
		.main_site2_form_body  .put3{
			float:left;
			width:150px;
			height:40px;
			margin-left:50px;
			white-space:nowrap;
			text-overflow:ellipsis;
			overflow:hidden;
		}
		.main_site2_form_body  .put4{
			float:left;
			width:100px;
			margin-left:10px;
		}
		.main_site2_form_body  .put5{
			float:left;
			width:50px;
			margin-left:55px;
		}
		.main_site2_form_body  .put6{
			float:left;
			width:50px;
			margin-left:10px;
		}
	
		.main_site2_form_body  .put7{
			float:left;
			width:135px;
			margin-left:30px;
		}
		.main_site2_form_body  input:hover{
			border:1px #09C solid;
		}
		.main_site2_form_btn{
			/* width:1000px; */
			width:100%;
			height:50px;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			margin-bottom:80px;
		}
		.main_site2_form_btn input{
			
			width:50px;
			height:25px;
			background:#7B68EE;
			color:#fff;
			font-size:14px;
			float:left;
			margin-top:10px;
			margin-left:20px;
		}
		.main_site2_form_btn  .btn{
			margin-left:60px;
		}

	</style>
	<body>
		<!-- 操作主体  a_head_main-->
		<div class="a_head_main">
			<div class="main_site1_head">帖子管理</div>
			
			<div class="main_site1_head2">&nbsp;主题数: {$countDetail1}</div>

			<!-- 删除,修改 链接部分 -->
			<!-- 头部 -->
			<div class="main_site2_form_head clearFix">
				
				<div class="div1">标题</div>
				<div class="div2">版块</div>
				<div class="div3">作者</div>
				<div class="div4">回复</div>
				<div class="div5">浏览</div>
				<div class="div6">最后发表</div>

			</div>
			
			<!-- form表单部分 -->

			<form action="{$webSite}admin/admin/admin_detail1.php" method="post" enctype="multipart/form-data">

			<!-- 版块中没有被屏蔽的帖子 -->
			{if $resDetail}
			{foreach $resDetail as $valDetail1}
				<!-- 帖子在回收站显示时,用户和所属板块必须为非隐藏状态 -->
				{if $valDetail1['isdel'] == 0}
			<div class="main_site2_form_body clearFix">

				<div class="put1">
					<input type="checkbox" name="arrId[{$valDetail1['id']}]" value="{$valDetail1['id']}">
				</div>
			
				<div class="put2"">
					<a href="">{$valDetail1['title']}</a>
				</div>
			
				<!-- 根据版块classid和帖子所属cid -->
				{foreach $resCategory as $valPost1}
					{if $valPost1['cid'] == $valDetail1['classid']}
				<div class="put3">
					<a href="">{$valPost1['classname']}</a>
				</div>
					{/if}
				{/foreach}
				
				<!-- 根据用户uid和作者authorid -->
				{foreach $resUser as $valUserPost1}
					{if $valUserPost1['uid'] == $valDetail1['authorid']}
				<div class="put4">{$valUserPost1['username']}</div>
					{/if}
				{/foreach}
				<div class="put5">{$valDetail1['replycount']}</div>
				
				<div class="put6">{$valDetail1['hits']}</div>

				<div class="put7">{$t=date('Y-m-d H:i:s' , $valDetail1['addtime'])}</div>
			</div>
				{/if}
			{/foreach}
			{/if}

			<div  class="main_site2_form_btn">
				<input class="btn" type="submit" value="回 收">

			</div>

			</form>

		</div>
	</body>
</html>